#include <iostream>

int main() {
    int num = 10;
    int *ptr1 = &num;
    int **ptr2 = &ptr1;
    int ***ptr3 = &ptr2;

    std::cout << "Value of num: " << ***ptr3 << std::endl;

    return 0;
}
